import React from "react";
import { Breadcrumb } from "antd";
import { Link } from "react-router-dom";
import { useSelector, useDispatch } from "react-redux";
import { setOpenKeys, setSelectedKeys } from "@/store/menuSlice";
import { RootState } from "@/store/store";

const BreadcrumbCom: React.FC = () => {
  const dispatch = useDispatch();
  const items = [{ title: <Link to="/content/home">首页</Link> }];
  const { openKeys, selectedKeys } = useSelector(
    (state: RootState) => state.menu
  );

  return (
    <>
      <Breadcrumb style={{ margin: "16px 0" }} items={items}></Breadcrumb>
    </>
  );
};

export default BreadcrumbCom;
